package com.letoken.platform.repo.ecommerce.vo;

import lombok.Data;

import java.util.Date;
import java.util.List;

@Data
public class KuaidiInfoRes {
    private String company;
    private String com;
    private String no;
    private int statusDetail;
    private List<detail> list;
    private Boolean isSuccess;


    //当前节点状态 1 揽件 2 运输中 3 派送中 4 已签收 5 用户拒签 6 疑难件 7 无效单 8 超时单 9 签收失败 10 退回

    public Boolean getSuccess() {
        if (statusDetail == 4){
            return true;
        }
        return false;
    }





    @Data
     class detail {
         private Date datetime;
         private String remark;
    }
}
